package com.athuahua.spzx.service.impl;

import com.athuahua.spzx.entity.SysOperLog;
import com.athuahua.spzx.mapper.SysOperLogMapper;
import com.athuahua.spzx.vo.system.SysOperLogVo;
import com.athuahua.spzx.service.AsyncOperLogService;
import jakarta.annotation.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
 * @Author: huahua
 * @Date: 2024/8/7 0007
 * @Time: 15:16
 * @Description:
 */
@Service
public class AsyncOperLogServiceImpl implements AsyncOperLogService {


    @Resource
    private SysOperLogMapper sysOperLogMapper;

    //保存日志
    @Override
    public void saveSysOperLog(SysOperLogVo sysOperLog) {
        SysOperLog entity = new SysOperLog();
        BeanUtils.copyProperties(sysOperLog, entity);
        sysOperLogMapper.insert(entity);

    }
}
